package com.dgut.experiment2.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class NotiveEvent extends ApplicationEvent {
    private static final Logger logger=LoggerFactory.getLogger(NotiveEvent.class);
    private final String message;
    public NotiveEvent(String message){
        super(message);
        this.message=message;
        logger.info("添加事件成功！message：{}",message);
    }
    public String getMessage(){
        return message;
    }
}
